package Platform

type PlatformEnum = string

// keep same with c# UnityEngine => public enum RuntimePlatform
const (
	IOS           PlatformEnum = "IPhonePlayer"
	ANDROID       PlatformEnum = "Android"
	OSXEditor     PlatformEnum = "OSXEditor"
	WindowsEditor PlatformEnum = "WindowsEditor"
)

// IsSupported IsSupported
func IsSupported(p PlatformEnum) bool {
	return p == IOS || p == ANDROID || p == OSXEditor || p == WindowsEditor
}
